package top.tangyh.lamp.care.vo.result;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import top.tangyh.basic.base.entity.Entity;

@Data
@Schema(description = "特护单直接新增修改观察项目记录 保存时，id为null且数据库不存在时 则新增; id为null，业务主键对应记录存在时，则更新; id不为null时，也为更新")
public class CareObsvRecordDto extends Entity<Long> {
//	@Schema(description = "系统主键，说明：保存时，id为null且数据库不存在时 则新增; id为null，业务主键对应记录存在时，则更新; id不为null时，也为更新")
//	private Long id;

	@Schema(description = "观察项id,obsvCode对应的观察项的id")
	private Long obsvId;

	@Schema(description = "病人识别号",required = true)
	@NotBlank(message = "病人识别号")
	private String patientIdent;

	@Schema(description = "病人住院号",required = true)
	@NotBlank(message = "病人住院号")
	private String hospitalNumber;

	@Schema(description = "标识,或即观察标识，说明：为生命特征指标编码如spo2",required = true)
	@NotBlank(message = "观察标识不能为空，或即生命特征参数")
	private String obsvCode;

	@Schema(description = "生命体征参数值",required = true)
	@NotBlank(message = "生命体征参数值(数据类型为枚举时,填写对应枚举的obsvCode)")
	private String propValue;

	@Schema(description = "记录时间",required = true)
	@NotBlank(message = "记录时间")
	private Long recTime;

	@Schema(description = "采集人",required = true)
	@NotBlank(message = "采集人")
	private String caijiren;

	@Schema(description = "采集人工号(账号)",required = true)
	@NotBlank(message = "采集人工号(账号)")
	private String caijirenGh;
}
